
<div style="margin-bottom:20px;">
  <span><?php __('Welcome to '.$sitename.', your local free classifieds site. Please click a link below to continue.'); ?></span>
</div>
<div style="margin-bottom:20px;">
  <div class="dl" style="width:66%">
    <?php echo $html->link(__('Post a classified ad',true), array('action'=>'selectCategory'), array('class'=>'bold')); ?>
     -
    <?php __('quick, simple & free'); ?>
  </div>
  <div class="dl" style="width:33%">
    <?php echo $html->link(__('All classified ads',true), '/adPosts', array('class'=>'bold')); ?>
    (<?php __('sorted by date'); ?>)
  </div>
  <div class="clear"></div>
</div>
<div>
<?php foreach ($categories as $main=>$subcategories) { ?>
   <div class="dl" style="width:33%">
     <span class="mainCategory"><?php __($main); ?></span>
     <ul>
<?php    foreach ($subcategories as $id=>$category) { ?>
       <li>
         <?php echo $html->link(__($category,true), '/adPosts/browse/'.$id); echo isset($postcount[$id])?'('.$postcount[$id].')':''; ?>
       </li>
<?php    } ?>
     </ul>
   </div>
<?php } ?>
   <div class="clear"></div>
</div>

